package cn.dgut.jy.soro.repository;

import cn.dgut.jy.soro.entity.Order;
import cn.dgut.jy.soro.entity.OrderItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderItemRepository extends JpaRepository<OrderItem, Integer>,
        JpaSpecificationExecutor<OrderItem> {
    List<OrderItem> findByOrderId(Integer orderId);
}
